package com.yss.kettle.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import lombok.extern.slf4j.Slf4j;
import com.yss.common.core.utils.StringUtils;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yss.kettle.service.IJobDutiesTaskService;
import com.yss.kettle.mapper.JobDutiesTaskMapper;
import com.yss.kettle.domain.JobDutiesTask;

/**
 * 采集任务和作业任务关联关系Service业务层处理
 *
 * @author yss
 * @date 2023-04-25
 */
@Slf4j
@Service
public class JobDutiesTaskServiceImpl extends ServiceImpl<JobDutiesTaskMapper,JobDutiesTask> implements IJobDutiesTaskService {
    /**
     * 查询采集任务和作业任务关联关系列表
     *
     * @param jobDutiesTask 采集任务和作业任务关联关系
     * @return 采集任务和作业任务关联关系
     */
    @Override
    public List<JobDutiesTask> selectJobDutiesTaskList(JobDutiesTask jobDutiesTask) {
        QueryWrapper<JobDutiesTask> wrapper = new QueryWrapper();
        if (StringUtils.isNull(jobDutiesTask)) {
            return this.list(wrapper);
        }
        return this.list(wrapper);
    }

}
